package com.my.server1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

@Data
@TableName(value = "orders")
public class Orders implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 购买的商品id
     */
    @TableField(value = "good_id")
    private String goodId;

    /**
     * 购买数量
     */
    @TableField(value = "buy_number")
    private Integer buyNumber;

    private static final long serialVersionUID = 1L;
}